public class Thoroughbred {
    // 私有属性
    private Horse mother;
    private Horse father;
    private int birthyear;

    // 构造函数
    public Thoroughbred(Horse mother, Horse father, int birthyear) {
        this.mother = mother;
        this.father = father;
        this.birthyear = birthyear;
    }

    // 获取当前年龄的方法
    public int getCurrentAge() {
        int currentYear = java.time.Year.now().getValue(); // 获取当前年份
        return currentYear - birthyear; // 计算年龄
    }

    // 获取父亲的信息
    public Horse getFather() {
        return father;
    }

    // 获取母亲的信息
    public Horse getMother() {
        return mother;
    }
}
// 假设的Horse类
class Horse {
    // 马的基本信息，例如名字等
    private String name;

    public Horse(String name) {
        this.name = name;
    }

    // Getter方法
    public String getName() {
        return name;
    }

    // Setter方法
    public void setName(String name) {
        this.name = name;
    }
}